﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucMainMenu.ascx.cs"
    Inherits="SES.CMS.Module.ucMainMenu" %>
<div class="menu" runat="server" id="divMenu">
    <ul>
        <asp:Repeater runat="server" ID="rptParentMenu" OnItemDataBound="rptParentMenu_ItemDataBound">
            <ItemTemplate>
                <li class="position"><a class="hide" title='<%#Eval("Title") %>' href='<%#CategoryUrl(int.Parse(Eval("CategoryID").ToString()),int.Parse(Eval("CategoryTypeID").ToString()),Eval("Title").ToString()) %>'>
                    <%#Eval("Title") %></a>
                    <ul>
                        <asp:Repeater runat="server" ID="rptChildMenu">
                            <ItemTemplate>
                                <li><a title='<%#Eval("Title") %>' class="hide" href='<%#CategoryUrl(int.Parse(Eval("CategoryID").ToString()),int.Parse(Eval("CategoryTypeID").ToString()),Eval("Title").ToString()) %>'>
                                    <span>
                                        <%#Eval("Title") %></span></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</div>
<div class="menu" runat="server" id="divMenuProduct" visible="false">
    <ul>
        <asp:Repeater runat="server" ID="rptMenuProduct" OnItemDataBound="rptMenuProduct_ItemDataBound">
            <ItemTemplate>
                <li class="position"><a class="hide" title='<%#Eval("Title") %>' href='<%#CategoryUrl(int.Parse(Eval("CategoryID").ToString()),int.Parse(Eval("CategoryTypeID").ToString()),Eval("Title").ToString()) %>'>
                    <%#Eval("Title") %></a> </li>
                <asp:Repeater runat="server" ID="rptChildMenu1" >
                    <ItemTemplate>
                        <li><a title='<%#Eval("Title") %>' class="hide" href='<%#CategoryUrl(int.Parse(Eval("CategoryID").ToString()),int.Parse(Eval("CategoryTypeID").ToString()),Eval("Title").ToString()) %>'>
                            <span>&nbsp;&nbsp;&nbsp;&nbsp;
                                <%#Eval("Title") %></span></a>
                            <ul>
                                <asp:Repeater runat="server" ID="rptChildMenu2" DataSource ='<%#BindMenuLevel2(int.Parse(DataBinder.Eval(Container.DataItem,"CategoryID").ToString())) %>'>
                                    <ItemTemplate>
                                        <li><a title='<%#Eval("Title") %>' class="hide" href='<%#CategoryUrl(int.Parse(Eval("CategoryID").ToString()),int.Parse(Eval("CategoryTypeID").ToString()),Eval("Title").ToString()) %>'>
                                            <span>
                                                <%#Eval("Title") %></span></a></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</div>
